// SelfTest.cpp : Implementation of CSelfTest
#include "stdafx.h"
#include "Activcard.h"
#include "SelfTest.h"

/////////////////////////////////////////////////////////////////////////////
// CSelfTest

STDMETHODIMP CSelfTest::InterfaceSupportsErrorInfo(REFIID riid)
{
	static const IID* arr[] = 
	{
		&IID_ISelfTest
	};
	for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		if (InlineIsEqualGUID(*arr[i],riid))
			return S_OK;
	}
	return S_FALSE;
}

STDMETHODIMP CSelfTest::ManualLockingToken(BSTR bstrSn)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())

	// TODO: Add your implementation code here

	return S_OK;
}

STDMETHODIMP CSelfTest::UnlockTokenAndResetNumOfTries(BSTR bstrSn)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())

	// TODO: Add your implementation code here

	return S_OK;
}

STDMETHODIMP CSelfTest::UnlockPinCode(BSTR bstrSn, BSTR bstrChallengeCode)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())

	// TODO: Add your implementation code here

	return S_OK;
}

STDMETHODIMP CSelfTest::ResynchronizeByClockAndCounter(BSTR bstrSn, BSTR bstrClock, BSTR bstrCounter)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())

	// TODO: Add your implementation code here

	return S_OK;
}

STDMETHODIMP CSelfTest::ResynchronizeByPassword(BSTR bstrSn, BSTR bstrPassword)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())

	// TODO: Add your implementation code here

	return S_OK;
}
